<?php

namespace app\models;

class Event extends \app\libs\orm\Model
{

    public $id;
    public $person;
    public $relation;
    public $name;
    public $date;
    public $place;
    public $description;

    public function date()
    {
        if($this->date)
            return (new \DateTime($this->date))->format('d M Y');
    }

}
